#ifndef __CAN_TEST_H__
#define __CAN_TEST_H__

#include <stdint.h>
#include "can_bsp.h"

/*
    ID范围
    0x00 ~ 0x0f:MOSI
    0x10 ~ 0x1f:MISO
*/
#define Device_CAN_ID    0x00


void WHT_CAN_Init(void);
int WHT_CAN_Send_Message(WHT_CAN_Message_t* message, uint32_t timeout_ms);
/* 处理完接收的数据必须要清除标志位 */
WHT_CAN_Message_t* WHT_CAN_Receive_Message(uint32_t timeout_ms);


#endif
